package org.easymis.crm.modules.system.service.impl;

import java.util.HashMap;
import java.util.List;

import org.easymis.crm.modules.system.entitys.mybatis.dto.OrganizeFunction;
import org.easymis.crm.modules.system.entitys.mybatis.mapper.OrganizeFunctionMapper;
import org.easymis.crm.modules.system.service.OrganizeFunctionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
@Service
public class OrganizeFunctionServiceImpl implements OrganizeFunctionService {
	@Autowired
	OrganizeFunctionMapper mapper;

	@Override
	public List<OrganizeFunction> getList(OrganizeFunction bean) {
		HashMap<String, Object> params = new HashMap<String, Object>();
		return mapper.getList(params);
	}

	@Override
	public void save(OrganizeFunction bean) {
		// TODO Auto-generated method stub
		mapper.save(bean);
	}

	@Override
	public void saveBatch(List<OrganizeFunction> beans) {
		// TODO Auto-generated method stub
		mapper.saveBatch(beans);
	}

	@Override
	public void update(OrganizeFunction bean) {
		// TODO Auto-generated method stub
		mapper.update(bean);
	}

	@Override
	public void delete(String functionId) {
		// TODO Auto-generated method stub
		mapper.delete(functionId);
	}

	@Override
	public OrganizeFunction findById(String functionId) {
		// TODO Auto-generated method stub
		return mapper.findById(functionId);
	}

}
